home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
ws_enc1a
/
ws_encry.frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1999-10-09
|
11KB
|
279 lines
VERSION 5.00
Begin VB.Form frmWs_Encrypt
BackColor = &H00000000&
Caption = "WS_ENCRYPT"
ClientHeight = 4995
ClientLeft = 60
ClientTop = 1455
ClientWidth = 9480
Icon = "WS_Encrypt.frx":0000
LinkTopic = "Form1"
ScaleHeight = 4995
ScaleWidth = 9480
Begin VB.TextBox Text1
BackColor = &H00000000&
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 360
Index = 3
Left = 315
TabIndex = 7
Top = 4275
Width = 8655
End
Begin VB.TextBox Text1
BackColor = &H00000000&
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 360
Index = 1
Left = 270
TabIndex = 1
Top = 2250
Width = 8610
End
Begin VB.TextBox Text1
BackColor = &H00000000&
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 330
Index = 0
Left = 225
TabIndex = 0
Top = 1260
Width = 8610
End
Begin VB.TextBox Text1
BackColor = &H00000000&
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 360
Index = 2
Left = 270
TabIndex = 2
Top = 3285
Width = 8655
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "Error Messages"
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 285
Index = 4
Left = 315
TabIndex = 8
Top = 3960
Width = 1590
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "Cypher Text from above line becomes decrypted."
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 285
Index = 3
Left = 900
TabIndex = 6
Top = 3015
Width = 4830
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "Password becomes encrypted. You may also enter a previously encrypted password here."
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 465
Index = 2
Left = 900
TabIndex = 5
Top = 1800
Width = 8700
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 2
Index = 5
X1 = 630
X2 = 765
Y1 = 3240
Y2 = 3060
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 2
Index = 4
X1 = 495
X2 = 630
Y1 = 3060
Y2 = 3240
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 2
Index = 3
X1 = 630
X2 = 630
Y1 = 2790
Y2 = 3195
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 2
Index = 2
X1 = 630
X2 = 765
Y1 = 2160
Y2 = 1980
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 2
Index = 1
X1 = 495
X2 = 630
Y1 = 1980
Y2 = 2160
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 2
Index = 0
X1 = 630
X2 = 630
Y1 = 1710
Y2 = 2115
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "Enter Password Here"
BeginProperty Font
Name = "System"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 285
Index = 1
Left = 270
TabIndex = 4
Top = 945
Width = 2130
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "WS_Encrypt"
BeginProperty Font
Name = "System"
Size = 19.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 510
Index = 0
Left = 270
TabIndex = 3
Top = 90
Width = 6585
End
Attribute VB_Name = "frmWs_Encrypt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Text1_Change(Index As Integer)
'This program is based on a javascript program found at "www.hispasec.com/wsftp.asp". Kudos to its author.
'Ws_FTP has a feature that lets you save the password you use to connect to FTP sites. It saves the
'password as an encrypted string in the WS_FTP.ini file. This program can encrypt and decrypted strings
'using the same algorithm that WS_FTP uses. This form serves as a demonstration of the encrypt and decrypt function
'which can be found in modCrypt. modMath has a function that turns Hex strings into integers. I couldn't find
'a fun